package gxnu.edu.cn.entity;

import lombok.Data;

import java.time.LocalDateTime;

@Data

public class PasswordRest {
    //帐户名
    private String userName;
    //验证码有效时间
    private LocalDateTime validUntil;
    /**验证码*/
    private String  verificationCode;
    //状态1：可使用，0：已失效
    private  int status;

    public PasswordRest(String userName, LocalDateTime validUntil, String verificationCode, int status) {
        this.userName = userName;
        this.validUntil = validUntil;
        this.verificationCode = verificationCode;
        this.status = status;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public LocalDateTime getValidUntil() {
        return validUntil;
    }

    public void setValidUntil(LocalDateTime validUntil) {
        this.validUntil = validUntil;
    }

    public String getVerificationCode() {
        return verificationCode;
    }

    public void setVerificationCode(String verificationCode) {
        this.verificationCode = verificationCode;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
